{% extends 'user-base.html' %}
{% block title %}收藏的教师{% endblock %}
{% block active2 %}
<li><a href="{% url 'user:usercenter' %}">个人资料</a></li>
<li><a href="{% url 'user:my_course' %}">我的课程</a></li>
<li class="active2"><a href="{% url 'user:my_fav' %}">我的收藏</a></li>
<li>
<a href="{% url 'user:my_message' %}" style="position: relative;">
我的消息
</a>
</li>
{% endblock %}
{% block right_content %}
    <div class="right" >
            <div class="personal_des Releasecont">
                <div class="head">
                    <h1>我的收藏</h1>
                </div>
            </div>
            <div class="personal_des permessage">
                <div class="head">
                    <ul class="tab_header messagehead">
                        <li><a href="{% url 'user:my_fav_org' %}">课程机构</a> </li>
                        <li class="active"><a href="{% url 'user:my_fav_teacher' %}">授课教师 </a></li>
                        <li><a href="{% url 'user:my_fav' %}">公开课程</a></li>
                    </ul>
                </div>
                <div class="messagelist">
                  {% for teacher in fav_teachers %}
                    <div class=" butler_list butler-fav-box">
                        <dl class="des users">
                            <dt>
                            <a href="{% url 'org:teacher_detail' teacher.id %}">
                              <img width="100" height="100" src="{{ teacher.image.url }}"/>
                                </a>
                            </dt>
                            <dd>
                                <h1>
                                    <a href="{% url 'org:teacher_detail' teacher.id %}">
                                      {{ teacher.name }}<span class="key">认证教师</span>
                                    </a>
                                </h1>
                                <ul class="cont clearfix">
                                  <li class="time">工作年限：<span>{{ teacher.work_year }}</span></li>
                                  <li class="c7">课程数：<span>{{ teacher.course_set.all.count }}</span></li>
                                </ul>
                                <ul class="cont clearfix">
                                    <li class="time">工作公司：<span>xxx</span></li>
                                    <li class="c7">公司职位：<span>xxx</span></li>
                                </ul>
                            </dd>
                            <div class="delete jsDeleteFav_teacher" data-favid="1"></div>
                        </dl>
                    </div>
                    {% endfor %}
                </div>
            </div>
        </div>


	</div>
{% endblock %}
